package com.kxf.rpc.provider;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Kxf
 * @create 2021/9/22,0022 22:26
 */
public abstract class AbstractServiceProvider implements CommonServiceProvider {

    static final Map<String, Object> registry = new ConcurrentHashMap<>();

    @Override
    public Object getProvider(String interfaceName) {
        return registry.get(interfaceName);
    }
}
